package com.bw.service.impl;

import com.bw.domain.SysRole;
import com.bw.service.SysRoleService;
import com.bw.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author A
* @description 针对表【sys_role(角色信息表)】的数据库操作Service实现
* @createDate 2024-08-14 21:14:41
*/
@Service
public class SysRoleServiceImpl implements SysRoleService{

    @Autowired
    SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> list(SysRole sysRole) {
        return sysRoleMapper.list(sysRole);
    }

    @Override
    public boolean update(SysRole sysRole) {
        return sysRoleMapper.update(sysRole);
    }

    @Override
    public boolean delete(Integer roleId) {
        return sysRoleMapper.delete(roleId);
    }

    @Override
    public boolean add(SysRole sysRole) {
        return sysRoleMapper.add(sysRole);
    }

    @Override
    public List<SysRole> RoleList() {
        return sysRoleMapper.RoleList();
    }

    @Override
    public void deletes(List<String> asList) {
        sysRoleMapper.deletes(asList);
    }

    @Override
    public List<Map<String,Object>> selectRoleCount() {
        return sysRoleMapper.selectRoleCount();
    }

    @Override
    public void insertUsers(SysRole date) {
        sysRoleMapper.insertUsers(date);
    }


}




